![]() |
PATH![]() |
![]() ![]() |
The following Window Manager functions for retrieving window information are new or changed with Appearance Manager 1.0:
Maps the location of the cursor to a part of the screen or a region of a window when your application receives a mouse-down event.
pascal short FindWindow (
Point thePoint,
WindowPtr *theWindow);
You typically call the function FindWindow whenever you receive a mouse-down event. The FindWindow function helps you dispatch the event by reporting whether the cursor was in the menu bar or in a window when the mouse button was pressed. If the cursor was in a window, the function will produce both a pointer to the window and a constant that identifies the region of the window in which the event occurred. If Appearance is available, FindWindow may return the inCollapseBox constant as one of the possible window regions.
Obtains the features that a window supports.
pascal OSStatus GetWindowFeatures (
WindowPtr inWindow,
UInt32* outFeatures);
The GetWindowFeatures function produces a window definition function's features in response to a kWindowMsgGetFeatures message. For a list of the features a window might support, see Reporting Window Features.
Obtains a handle to a specific window region.
pascal OSStatus GetWindowRegion (
WindowPtr inWindow,
WindowRegionCode inRegionCode,
RgnHandle ioWinRgn);
Previous | Back Up One Level | Next |